import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'ChartMoveIndex',
      component: resolve => require(['@/page/chart/chartMoveIndex'], resolve)
    },
    {
      path: '/table',
      name: 'TableIndex',
      component: resolve => require(['@/page/ui/tableIndex'], resolve)
    },
    {
      path: '/number',
      name: 'NumberIndex',
     component: resolve => require(['@/page/ui/numberIndex'],resolve)
    },
    {
      path: '/loading',
      name: 'NumberIndex',
     component: resolve => require(['@/page/ui/loadingIndex'],resolve)
    },
    {
      path:"/sass",
      name:"SassIndex",
      component:resolve => require(["@/page/ui/sassIndex"],resolve)
    },
    {
      path:"/top",
      name:"ChartTopIndex",
      component:resolve => require(["@/page/chart/chartTopIndex"],resolve)
    },
    {
      path:"/chart",
      name:"ChartIndex",
      component:resolve => require(["@/page/chart/chartIndex"],resolve)
    },
    {
      path:"/drillMap",
      name:"DrillMapIndex",
      component:resolve => require(["@/page/chart/drillMapIndex"],resolve)
    },
    {
      path:"/ring",
      name:"ChartRingIndex",
      component:resolve => require(["@/page/chart/chartRingIndex"],resolve)
    },
    {
      path:"/custom",
      name:"ChartCustomIndex",
      component:resolve => require(["@/page/chart/chartCustomIndex"],resolve)
    },
    {
      path:"/customCase",
      name:"ChartCustomCaseIndex",
      component:resolve => require(["@/page/chart/chartCustomCaseIndex"],resolve)
    },
    {
      path:"/lineColor",
      name:"ChartLineColorIndex",
      component:resolve => require(["@/page/chart/chartLineColorIndex"],resolve)
    },
    {
      path:"/progress",
      name:"ChartProgressIndex",
      component:resolve => require(["@/page/chart/chartProgressIndex"],resolve)
    },
    {
      path:"/radar",
      name:"ChartRadarIndex",
      component:resolve => require(["@/page/chart/chartRadarIndex"],resolve)
    },
    {
      path:"/merge",
      name:"TableMergeIndex",
      component:resolve => require(["@/page/ui/tableMergeIndex"],resolve)
    },
    {
      path:"/sandai",
      name:"ProvideAndInject",
      component:resolve => require(["@/page/element-ui/provideAndInjectIndex"],resolve)
    },
    {
      path:"/radios",
      name:"Radios",
      component:resolve => require(["@/page/element-ui/RadiosIndex"],resolve)
    },
    {
      path:"/test1",
      name:"Radio",
      component:resolve => require(["@/page/test/radio"],resolve)
    },
    {
      path:"/test2",
      name:"Select",
      component:resolve => require(["@/page/test/select"],resolve)
    },
    {
      path:"/test3",
      name:"Switch",
      component:resolve => require(["@/page/test/switch"],resolve)
    },
    {
      path:"/test4",
      name:"Update",
      component:resolve => require(["@/page/test/update"],resolve)
    }
  ]
})
